<%@ page contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="my" %>
<%@page session="true"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style.css"/>
<title>Login Page</title>
</head>
  <fmt:message var="title" key="login.out"/>
 <my:layout title="${title}">   
      <jsp:attribute name="body">

	<div id="login-box">
 
		<h3><fmt:message key="index.login"/></h3>
 
		<c:if test="${not empty error}">
			<div class="error">${error}</div>
		</c:if>
		<c:if test="${not empty msg}">
			<div class="msg">${msg}</div>
		</c:if>
 
		<form name='loginForm'
		    action="<c:url value='/account/login' />" method='POST'>
 
		    <table>
			<tr>
				<td><fmt:message key="index.user"/> </td>
				<td><input type='text' name='username' value=''></td>
			</tr>
			<tr>
				<td><fmt:message key="index.password"/> </td>
				<td><input type='password' name='password' /></td>
			</tr>
			<tr>
			        <td colspan='2'>
                                <input name="submit" type="submit" value=<fmt:message key="index.submit"/>  />
                                </td>
			</tr>
		   </table>
 
		   <input type="hidden" 
                     name="${_csrf.parameterName}" value="${_csrf.token}" />
		</form>
	</div>
 
   </jsp:attribute>
 </my:layout>
</html>